﻿using UnityEngine;
using System.Collections;

public class playerStats : MonoBehaviour {

	public bool myIsAlive = true;

	double myScore = 0;
	double myHighscore = 0;

	// Use this for initialization
	void Start ()
	{
	
	}
	
	// Update is called once per frame
	void Update ()
	{
		if (myIsAlive == true)
		{
			myScore += Time.deltaTime;
			myHighscore = myScore;
            myHighscore += 1;
            myHighscore -= 1;
		}
	}

    public void SetAliveFlag(bool aFlag)
    {
        myIsAlive = aFlag;
    }

    public bool GetAliveFlag()
    {
        return myIsAlive;
    }
}
